package com.qf.dao;

import com.qf.pojo.TbGoods;
import com.qf.pojo.TbGoodsKz;
import org.springframework.stereotype.Repository;

import java.sql.SQLException;
import java.util.List;
@Repository
public interface GoodsDao {
    long addGoodsKz(TbGoodsKz tbGoodsKz) throws SQLException;

    long addGoods(long kzid) throws SQLException;
    int getGoodsCountByTypeId(int typeId);

    List<TbGoods> getGoodsByTypeIdAndLimit(int typeid, int start, int rows);
    TbGoods getGoodById(int id);
}
